Content-Length: 240092 | pFad | https://github.com/mubeng/mubeng/commit/9fcfca6471e5aa0753802be833bb4760f26a3c40

AB ci(release): replace hub to ghcr · mubeng/mubeng@9fcfca6 · GitHub
Skip to content

Commit

Permalink
ci(release): replace hub to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Mar 9, 2023
1 parent c2ccf56 commit 9fcfca6
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,44 @@ jobs:
version: latest

publish:
name: "Publish to DockerHub"
name: "Publish to GHCR"
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v3

- name: "Set up QEMU"
uses: docker/setup-qemu-action@v2.1.0

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v2.4.1

- name: "Login to DockerHub"
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Build and push"
id: docker_build
- name: "Build Docker Images"
uses: docker/build-push-action@v4.0.0
with:
push: true
push: false
build-args: "VERSION=${{ github.ref_name }}"
tags: "${{ github.repository }}:latest,${{ github.repository }}:${{ github.ref_name }}"

- name: "Image digest"
run: echo ${{ steps.docker_build.outputs.digest }}
- name: "Slim Images (latest)"
uses: kitabisa/docker-slim-action@v1
with:
target: "${{ github.repository }}:latest"
overwrite: true
env:
DSLIM_HTTP_PROBE: false

- name: "Slim Images (versioing)"
uses: kitabisa/docker-slim-action@v1
with:
target: "${{ github.repository }}:${{ github.ref_name }}"
overwrite: true
env:
DSLIM_HTTP_PROBE: false

- name: "Re-tagging & Push Images"
run: |
docker tag ${{ github.repository }}:latest ghcr.io/${{ github.repository }}:latest
docker tag ${{ github.repository }}:${{ github.ref_name }} ghcr.io/${{ github.repository }}:${{ github.ref_name }}
docker push ghcr.io/${{ github.repository }} -a

0 comments on commit 9fcfca6

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/mubeng/mubeng/commit/9fcfca6471e5aa0753802be833bb4760f26a3c40

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy