Bump docker/build-push-action from 6.7.0 to 6.9.0 #71
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: java 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/[email protected] | |
- name: Pull latest JDK Linux image | |
run: docker pull eclipse-temurin:19-jdk | |
- name: Pull latest base image | |
run: docker pull debian:bullseye-slim | |
- name: Build Java Linux Image | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./linux-java.Dockerfile | |
tags: | | |
lacledeslan/gamesvr-minecraft:latest | |
ghcr.io/lacledeslan/gamesvr-minecraft:latest | |
lacledeslan/gamesvr-minecraft:java | |
ghcr.io/lacledeslan/gamesvr-minecraft:java | |
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-minecraft:latest /app/ll-tests/gamesvr-java-minecraft.sh | |
- name: Login to DockerHub | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/[email protected] | |
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-minecraft:latest && docker push lacledeslan/gamesvr-minecraft:java | |
- name: Push to GitHub Packages | |
if: ${{ github.event_name != 'pull_request' }} | |
run: docker push ghcr.io/lacledeslan/gamesvr-minecraft:latest && docker push ghcr.io/lacledeslan/gamesvr-minecraft:java |