This commit is contained in:
parent
ba78c7faea
commit
57e5530cdd
3 changed files with 30 additions and 29 deletions
3
.docker/build/Dockerfile
Normal file
3
.docker/build/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk add --no-cache curl git git-lfs zip unzip docker npm nodejs
|
|
@ -1,4 +1 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache curl nano git git-lfs zip unzip docker nodejs npm && \
|
|
||||||
npm install --global yarn pnpm
|
|
|
@ -9,43 +9,44 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: forge.niblock.tech
|
REGISTRY: forge.niblock.tech
|
||||||
REGISTRY_USERNAME: ${{ github.actor }}
|
REGISTRY_USERNAME: niblock
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
REGISTRY_IMAGE_NAME: ${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: forge.niblock.tech/containers/alpine:build
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Buildx
|
# - name: Setup Buildx
|
||||||
uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
# uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: |
|
# run: |
|
||||||
buildx build .docker/latest
|
# buildx build .docker/latest
|
||||||
|
|
||||||
# - name: Login to the NibTech Container Registry
|
- name: Login to the NibTech Container Registry
|
||||||
# uses: https://code.forgejo.org/docker/login-action@v3
|
uses: https://code.forgejo.org/docker/login-action@v3
|
||||||
# with:
|
with:
|
||||||
# registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
# username: ${{ env.REGISTRY_USERNAME }}
|
username: ${{ env.REGISTRY_USERNAME }}
|
||||||
# password: ${{ env.REGISTRY_PASSWORD }}
|
password: ${{ env.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
# - name: Extract repository metadata (tags, labels)
|
- name: Extract repository metadata (tags, labels)
|
||||||
# id: meta
|
id: meta
|
||||||
# uses: https://github.com/docker/metadata-action@v5
|
uses: https://github.com/docker/metadata-action@v5
|
||||||
# with:
|
with:
|
||||||
# images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}
|
||||||
|
|
||||||
# - name: Build and publish Alpine Latest
|
- name: Build and publish Alpine Latest
|
||||||
# uses: https://code.forgejo.org/docker/build-push-action@v5
|
uses: https://code.forgejo.org/docker/build-push-action@v5
|
||||||
# with:
|
with:
|
||||||
# context: .docker/latest
|
context: .docker/latest
|
||||||
# push: true
|
push: true
|
||||||
# tags: |
|
tags: |
|
||||||
# ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}:latest
|
${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}:latest
|
||||||
# labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
Loading…
Reference in a new issue