Skip to content

Commit

Permalink
Add Windows builds for GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
jonakoudijs committed Mar 1, 2025
1 parent 4455102 commit a3538b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/_build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<tag>`
- `ghcr.io/steamcmd/steamcmd:<tag>`

> ***Note:***
> *Some Windows tags are not available (yet) because they cannot be*
> *build on the current Github Actions Windows Platform. The Dockerfiles are*
Expand Down

0 comments on commit a3538b7

Please sign in to comment.