Bump docker/build-push-action from 6.4.1 to 6.5.0 #106
Workflow file for this run
This file contains 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: linux/amd64 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
repository_dispatch: # Allows action to be triggered via webhook | |
workflow_dispatch: # Allows action to be run manually from the Actions tab | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3.1.0 | |
- name: Pull Latest Linux Base Image | |
run: docker pull debian:stretch-slim | |
- name: Build Linux Image | |
uses: docker/build-push-action@v6.5.0 | |
with: | |
context: . | |
file: ./linux.Dockerfile | |
tags: | | |
lacledeslan/gamesvr-svencoop:latest | |
ghcr.io/lacledeslan/gamesvr-svencoop:latest | |
build-args: | | |
BUILDNODE=GitHub (Run Number: ${{ github.run_number }} Run ID: ${{ github.run_id }}) | |
SOURCE_COMMIT=${{ github.sha }} | |
no-cache: true | |
- name: Test Linux Image | |
run: docker run --rm lacledeslan/gamesvr-svencoop:latest /app/ll-tests/gamesvr-svencoop.sh | |
- name: Login to DockerHub | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3.2.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3.2.0 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_USERNAME }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
- name: Push to Docker HUB | |
if: ${{ github.event_name != 'pull_request' }} | |
run: docker push lacledeslan/gamesvr-svencoop:latest | |
- name: Push to GitHub Packages | |
if: ${{ github.event_name != 'pull_request' }} | |
run: docker push ghcr.io/lacledeslan/gamesvr-svencoop:latest | |
- name: Trigger downstream build of lacledeslan/gamesvr-svencoop-freeplay | |
if: ${{ github.event_name != 'pull_request' }} | |
run: |- | |
curl -XPOST -u "${{ secrets.GH_PAT_USERNAME }}:${{ secrets.GH_PAT_TOKEN }}" \ | |
-H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" \ | |
--data '{"event_type": "${{ github.repository }} was updated", "client_payload": {"Run Number":"${{ github.run_number }}", "Run ID":"${{ github.run_id }}", "Source Commit":"${{ github.sha }}"}}' \ | |
https://api.github.com/repos/LacledesLAN/gamesvr-svencoop-freeplay/dispatches |