Skip to content

Commit

Permalink
ci: Publish release images to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Jul 3, 2024
1 parent 867a37b commit 0976024
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
name: create draft release
runs-on: ubuntu-latest
needs: push_release_tags
permissions:
contents: write
packages: write
steps:
- name: Set env
run: |
Expand All @@ -92,7 +95,7 @@ jobs:
echo "PULL_POLICY=IfNotPresent" >> $GITHUB_ENV
env:
RELEASE_TAG: ${{needs.push_release_tags.outputs.release_tag}}
REGISTRY: docker.io/mesosphere
REGISTRY: ghcr.io/mesosphere
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v4.1.7
with:
Expand All @@ -118,11 +121,12 @@ jobs:
files: out/*
body_path: ${{ env.RELEASE_TAG }}.md
tag_name: ${{ env.RELEASE_TAG }}
- name: Login to Dockerhub Registry
uses: docker/login-action@v2
- name: Login to 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: Build and push docker images
run: |
make ALL_ARCH="amd64 arm64" docker-build-all
Expand Down

0 comments on commit 0976024

Please sign in to comment.