Skip to content

Commit

Permalink
update: build docker image and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelife1314 committed Apr 2, 2023
1 parent 8a007cc commit f7bcfdb
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,26 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs:
- "get-tag"
# - "upload-assets"
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: actions/checkout@v3

- name: Set up Docker Buildx
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v2

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v2
with:
driver: docker-container

- name: "Log in to the container registry"
- name: "Login to Docker Hub"
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: "Log in to the github container registry"
uses: "docker/login-action@v2"
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -125,7 +133,11 @@ jobs:
context: .
push: true
file: docker/alpine.Dockerfile
tags: gamelife1314/rsb:latest,gamelife1314/rsb:v${{ needs.get-tag.outputs.pkg-version }}
tags: |
gamelife1314/rsb:latest
gamelife1314/rsb:v${{ needs.get-tag.outputs.pkg-version }}
ghcr.io/gamelife1314/rsb:latest
ghcr.io/gamelife1314/rsb:v${{ needs.get-tag.outputs.pkg-version }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64/v8
build-args: |
Expand Down

0 comments on commit f7bcfdb

Please sign in to comment.