Skip to content

Commit

Permalink
add ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Dec 2, 2024
1 parent 0b111f6 commit 57adfc1
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/build-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,35 @@ jobs:
build-deps:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push deps file

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push to Docker Hub and GHCR
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:deps"
file: Dockerfile
push: true
platforms: linux/amd64, linux/arm64, linux/s390x, linux/riscv64, linux/arm
tags: ${{ secrets.DOCKERHUB_USERNAME }}/docker-yarn-dev:deps
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/docker-yarn-dev:deps
ghcr.io/${{ github.repository_owner }}/docker-yarn-dev:deps

0 comments on commit 57adfc1

Please sign in to comment.