Bump docker/build-push-action from 6.6.1 to 6.7.0 #288
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: | |
schedule: | |
- cron: '0 12 * * WED' | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
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.2.0 | |
- name: Generate ENV Vars | |
run: | | |
echo "rfc3339_datetime=$(date --rfc-3339=seconds)" >> $GITHUB_ENV | |
- name: Build Linux Image | |
uses: docker/build-push-action@v6.7.0 | |
with: | |
context: . | |
file: ./linux.Dockerfile | |
tags: | | |
lacledeslan/steamcmd:latest | |
lacledeslan/steamcmd:linux | |
ghcr.io/lacledeslan/steamcmd:latest | |
ghcr.io/lacledeslan/steamcmd:linux | |
labels: | | |
com.lacledeslan.build-node=GitHub (Run #${{ github.run_number }}, ID: ${{ github.run_id }}) | |
org.opencontainers.image.created=${{ env.rfc3339_datetime }} | |
org.opencontainers.image.version=${{ github.sha }} | |
pull: true | |
no-cache: true | |
- name: Test Linux Image | |
run: docker run --rm lacledeslan/steamcmd:latest /app/ll-tests/steamcmd.sh | |
- name: Login to DockerHub | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3.3.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.3.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/steamcmd:latest | |
docker push lacledeslan/steamcmd:linux | |
- name: Push to GitHub Packages | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
docker push ghcr.io/lacledeslan/steamcmd:latest | |
docker push ghcr.io/lacledeslan/steamcmd:linux |