Skip to content

Commit

Permalink
Fix docker workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Oct 2, 2024
1 parent d90b13b commit b2c5c58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,23 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
uses: actions/checkout@v4
- name: Log in to the Github Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/docker_tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ on:
jobs:
main:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
- name: Log in to the Github Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit b2c5c58

Please sign in to comment.