Skip to content

Commit

Permalink
Added missing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
thetestgame committed Aug 30, 2024
1 parent 6e55ef7 commit a6e30f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
# Deploy a new image to DockerHub
build-and-publish-dockerhub:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

Expand All @@ -27,7 +30,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

# Publish our built container images
- name: Push docker images to DockerHub
- name: Push Docker images to DockerHub
run: |
# Push the default tags to DockerHub
docker push thetestgame/steam:stable
Expand All @@ -53,7 +56,7 @@ jobs:
fi
# Publish our built container images to the Github Container Registry
- name: Publish to Github Container Registry
- name: Push to Github Container Registry
run: |
# Authenticate with the Github Container Registry
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down

0 comments on commit a6e30f3

Please sign in to comment.