Skip to content

Commit

Permalink
⚒️
Browse files Browse the repository at this point in the history
  • Loading branch information
fuegovic authored Mar 14, 2024
1 parent 8251f8e commit 19c6312
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/starguard.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Docker images to ghcr.io
name: Publish Docker images to GitHub Packages

on:
push:
Expand All @@ -17,10 +17,10 @@ jobs:
- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
- name: Log in to the GitHub Packages registry
uses: docker/login-action@v2
with:
registry: ghcr.io
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -30,10 +30,8 @@ jobs:
- name: Tag and push bot image
run: |
docker tag starguard-bot:latest ghcr.io/${{ github.repository_owner }}/starguard-bot:${{ github.sha }}
docker push ghcr.io/${{ github.repository_owner }}/starguard-bot:${{ github.sha }}
docker tag starguard-bot:latest ghcr.io/${{ github.repository_owner }}/starguard-bot:latest
docker push ghcr.io/${{ github.repository_owner }}/starguard-bot:latest
docker tag starguard-bot:latest ghcr.io/${{ github.repository }}:bot
docker push ghcr.io/${{ github.repository }}:bot
build-and-push-image-server:
runs-on: ubuntu-latest
Expand All @@ -45,10 +43,10 @@ jobs:
- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
- name: Log in to the GitHub Packages registry
uses: docker/login-action@v2
with:
registry: ghcr.io
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -58,7 +56,5 @@ jobs:
- name: Tag and push server image
run: |
docker tag starguard-server:latest ghcr.io/${{ github.repository_owner }}/starguard-server:${{ github.sha }}
docker push ghcr.io/${{ github.repository_owner }}/starguard-server:${{ github.sha }}
docker tag starguard-server:latest ghcr.io/${{ github.repository_owner }}/starguard-server:latest
docker push ghcr.io/${{ github.repository_owner }}/starguard-server:latest
docker tag starguard-server:latest ghcr.io/${{ github.repository }}:server
docker push ghcr.io/${{ github.repository }}:server

0 comments on commit 19c6312

Please sign in to comment.