diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44ed4919..6348183a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ permissions: jobs: build-and-publish-develop: - name: "Release" + name: "Build and publish develop image" runs-on: "ubuntu-latest" steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d27c623..76deeb22 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,10 +5,11 @@ on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' - +permissions: + packages: write jobs: tagged-release: - name: "Release" + name: "Build Release" runs-on: "ubuntu-latest" steps: @@ -43,6 +44,12 @@ jobs: with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx @@ -53,6 +60,7 @@ jobs: with: images: | dedicatedcode/reitti + ghcr.io/${{ github.repository }} tags: | type=raw,value=latest,enable={{is_default_branch}} type=semver,pattern={{version}}