diff --git a/.github/workflows/_build-windows.yml b/.github/workflows/_build-windows.yml index 151fdb1..6f21067 100644 --- a/.github/workflows/_build-windows.yml +++ b/.github/workflows/_build-windows.yml @@ -17,9 +17,11 @@ jobs: steps: - uses: actions/checkout@v3 - name: Docker Login - run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + run: | + echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + echo ${{ secrets.GHCRIO_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ secrets.GHCRIO_USERNAME }} --password-stdin - name: Build Image - run: docker build -t steamcmd/steamcmd:${{ inputs.name }} . + run: docker build -t steamcmd/steamcmd:${{ inputs.name }} -t ghcr.io/steamcmd/steamcmd:${{ inputs.name }} . working-directory: dockerfiles/${{ inputs.name }} - name: Test Image run: docker run steamcmd/steamcmd:${{ inputs.name }} +quit @@ -31,8 +33,11 @@ jobs: foreach ($tag in $tags.split(",")) { docker tag steamcmd/steamcmd:${{ inputs.name }} steamcmd/steamcmd:$tag + docker tag ghcr.io/steamcmd/steamcmd:${{ inputs.name }} ghcr.io/steamcmd/steamcmd:${TAG}; } if: ${{ (github.ref == 'refs/heads/master') && (inputs.tags != '') }} - name: Push Image - run: docker push steamcmd/steamcmd --all-tags + run: | + docker push steamcmd/steamcmd --all-tags + docker push ghcr.io/steamcmd/steamcmd --all-tags if: ${{ github.ref == 'refs/heads/master' }} diff --git a/README.md b/README.md index 737c01a..192c6bd 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ have a look at [steamcmd.net](https://www.steamcmd.net). * [`windows-core-1903`](dockerfiles/windows-core-1903/Dockerfile) *(unavailable)* * [`windows-core-1809`](dockerfiles/windows-core-1809/Dockerfile) +All the tags are pushed to both the Docker Hub and the GitHub Container Registry: + +- `docker.io/steamcmd/steamcmd:` +- `ghcr.io/steamcmd/steamcmd:` + > ***Note:*** > *Some Windows tags are not available (yet) because they cannot be* > *build on the current Github Actions Windows Platform. The Dockerfiles are*