Skip to content

Commit

Permalink
Publish images to GitHub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Jun 11, 2024
1 parent 0121e40 commit 7d4f41a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/apkbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
BUILDER: apkbuild
MATRIX_TAG: ${{matrix.alpine}}
run: |
DOCKER_IMAGE=${{ github.repository }}-${BUILDER}
DOCKER_IMAGE=ghcr.io/${{ github.repository }}-${BUILDER}
TAGS="${DOCKER_IMAGE}:${MATRIX_TAG},${DOCKER_IMAGE}:latest"
COMMIT_SHA="${GITHUB_SHA}"
if [[ $GITHUB_REF == refs/tags/* ]]; then
Expand All @@ -50,8 +50,9 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: "Build and push APK builder docker image to DockerHub"
id: docker_build_builder
uses: docker/build-push-action@v5
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/debbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
BUILDER: debbuild
MATRIX_TAG: ${{matrix.debian}}
run: |
DOCKER_IMAGE=${{ github.repository }}-${BUILDER}
DOCKER_IMAGE=ghcr.io/${{ github.repository }}-${BUILDER}
TAGS="${DOCKER_IMAGE}:${MATRIX_TAG},${DOCKER_IMAGE}:latest"
COMMIT_SHA="${GITHUB_SHA}"
if [[ $GITHUB_REF == refs/tags/* ]]; then
Expand All @@ -53,8 +53,9 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: "Build and push Debian builder docker image to DockerHub"
id: docker_build_builder
uses: docker/build-push-action@v5
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/rpmbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
BUILDER: rpmbuild
MATRIX_TAG: ${{matrix.centos}}
run: |
DOCKER_IMAGE=${{ github.repository }}-${BUILDER}
DOCKER_IMAGE=ghcr.io/${{ github.repository }}-${BUILDER}
TAGS="${DOCKER_IMAGE}:${MATRIX_TAG},${DOCKER_IMAGE}:latest"
COMMIT_SHA="${GITHUB_SHA}"
if [[ $GITHUB_REF == refs/tags/* ]]; then
Expand All @@ -53,8 +53,9 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: "Build and push RPM builder docker image to DockerHub"
id: docker_build_builder
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 7d4f41a

Please sign in to comment.