1 name: ASF-docker-publish-latest
8 PLATFORMS: linux/amd64,linux/arm,linux/arm64
16 environment: release-docker
17 runs-on: ubuntu-latest
21 uses: actions/checkout@v4.2.2
26 - name: Set up Docker Buildx
27 uses: docker/setup-buildx-action@v3.8.0
29 - name: Login to ghcr.io
30 uses: docker/login-action@v3.3.0
33 username: ${{ github.actor }}
34 password: ${{ secrets.GITHUB_TOKEN }}
36 - name: Login to DockerHub
37 uses: docker/login-action@v3.3.0
39 username: ${{ secrets.DOCKERHUB_USERNAME }}
40 password: ${{ secrets.DOCKERHUB_TOKEN }}
42 - name: Prepare environment outputs
47 echo "FIXED_TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3)" >> "$GITHUB_ENV"
48 echo "DATE_ISO8601=$(date --iso-8601=seconds --utc)" >> "$GITHUB_ENV"
49 echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
50 echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
52 - name: Build and publish Docker image from Dockerfile.Service
53 uses: docker/build-push-action@v6.11.0
56 file: Dockerfile.Service
57 platforms: ${{ env.PLATFORMS }}
61 ASF_PRIVATE_SNK=${{ secrets.ASF_PRIVATE_SNK }}
62 STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
64 org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
65 org.opencontainers.image.version=${{ env.FIXED_TAG }}
66 org.opencontainers.image.revision=${{ github.sha }}
68 ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}
69 ${{ env.DH_REPOSITORY }}:${{ env.TAG }}