Update some of the logging #126
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: Publish Docker Image | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- 'release-versions/latest.txt' | |
env: | |
IMAGE_REPO: mrtyton | |
IMAGE_NAME: automated-ffdl | |
jobs: | |
Push-New-Release-Version-Image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Get environment variables | |
uses: FranzDiebold/github-env-vars-action@v2 | |
- name: Set version | |
run: | | |
RELEASE_VERSION=$(cat release-versions/latest.txt) | |
echo "RELEASE_VERSION=latest" >> $GITHUB_ENV | |
CALIBRE_VERSION=$(cat release-versions/calibre.txt) | |
echo "CALIBRE_VERSION=$CALIBRE_VERSION" >> $GITHUB_ENV | |
FFF_VERSION=$(cat release-versions/fff.txt) | |
echo "FFF_VERSION=$FFF_VERSION" >> $GITHUB_ENV | |
S6_OVERLAY_VERSION=$(cat release-versions/s6.txt) | |
echo "S6_OVERLAY_VERSION=$S6_OVERLAY_VERSION" >> $GITHUB_ENV | |
- name: Print image tag | |
run: | | |
echo "Branch: $CI_ACTION_REF_NAME" | |
echo "Release Version: ${{ env.RELEASE_VERSION }}" | |
echo "Calibre Version: ${{ env.CALIBRE_VERSION }}" | |
echo "FFF Version: ${{ env.FFF_VERSION }}" | |
echo "S6 Overlay Version: ${{ env.S6_OVERLAY_VERSION }}" | |
- name: Login to DockerHub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE_VERSION }} | |
build-args: | | |
VERSION=${{ env.RELEASE_VERSION }} | |
CALIBRE_RELEASE=${{ env.CALIBRE_VERSION }} | |
FFF_RELEASE=${{ env.FFF_VERSION }} | |
S6_OVERLAY_VERSION=${{ env.S6_OVERLAY_VERSION }} |