Update .forgejo/workflows/docker-build.yml
This commit is contained in:
@@ -16,24 +16,23 @@ env:
|
|||||||
CONTAINER_NAME: radius
|
CONTAINER_NAME: radius
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-arch:
|
docker:
|
||||||
runs-on: JackOfAllTrades-x86
|
runs-on: JackOfAllTrades-x86
|
||||||
environment: deploy
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare environment variables
|
|
||||||
run: |
|
|
||||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
||||||
echo REGISTRY=${{ env.FORGEJO_HOST }} >> $GITHUB_ENV
|
|
||||||
- name: Checkout the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Login to the registry
|
- name: Login to the registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.FORGEJO_HOST }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@@ -44,4 +43,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
provenance: false
|
provenance: false
|
||||||
platforms: linux/amd64, linux/arm64
|
platforms: linux/amd64, linux/arm64
|
||||||
tags: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest
|
tags: ${{ env.FORGEJO_HOST }}/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user