Add Winter Sale 2025 to SalesBlacklist #364
Workflow file for this run
This file contains hidden or 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: ASF-docker-publish-released | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| env: | |
| PLATFORMS: linux/amd64,linux/arm,linux/arm64 | |
| TAG: released | |
| permissions: | |
| packages: write | |
| jobs: | |
| main: | |
| environment: release-docker | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| show-progress: false | |
| submodules: recursive | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | |
| - name: Login to ghcr.io | |
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Login to DockerHub | |
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Prepare environment outputs | |
| shell: sh | |
| run: | | |
| set -eu | |
| echo "FIXED_TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3)" >> "$GITHUB_ENV" | |
| echo "DATE_ISO8601=$(date --iso-8601=seconds --utc)" >> "$GITHUB_ENV" | |
| echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV" | |
| echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV" | |
| - name: Build and publish Docker image from Dockerfile | |
| uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 | |
| with: | |
| context: . | |
| platforms: ${{ env.PLATFORMS }} | |
| provenance: true | |
| sbom: true | |
| secrets: | | |
| ASF_PRIVATE_SNK=${{ secrets.ASF_PRIVATE_SNK }} | |
| STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }} | |
| labels: | | |
| org.opencontainers.image.created=${{ env.DATE_ISO8601 }} | |
| org.opencontainers.image.version=${{ env.FIXED_TAG }} | |
| org.opencontainers.image.revision=${{ github.sha }} | |
| tags: | | |
| ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }} | |
| ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.FIXED_TAG }} | |
| ${{ env.DH_REPOSITORY }}:${{ env.TAG }} | |
| ${{ env.DH_REPOSITORY }}:${{ env.FIXED_TAG }} | |
| push: true |