v1.4.1 - fix #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: buildAndPushContainerToGHCR.yaml | |
| on: | |
| release: | |
| types: [ published ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get latest release tag | |
| id: get_latest_release | |
| uses: pozetroninc/github-action-get-latest-release@master | |
| with: | |
| owner: PixelWelt | |
| repo: GameGrid | |
| - name: 'Checkout GitHub Action' | |
| uses: actions/checkout@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: log in to Github Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 'Build and push Docker image' | |
| run: | | |
| docker buildx create --use | |
| docker buildx build --platform linux/amd64,linux/arm64 . --tag ghcr.io/pixelwelt/gamegrid:latest --tag ghcr.io/pixelwelt/gamegrid:${{ steps.get_latest_release.outputs.release }} --push | |