Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardozgz committed Jul 2, 2024
1 parent 01929bb commit d859d5c
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [new]

jobs:
build:
build-backend:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -20,11 +20,38 @@ jobs:
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to DockerHub Container registry
- name: Log in to GitHub Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: apps/website/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/member-counter/website:new-beta
build-backend:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container registry
uses: docker/login-action@v3
Expand All @@ -37,10 +64,10 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
file: apps/bot/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
eduardozgz/member-counter-bot:new-beta
ghcr.io/member-counter/bot:new-beta

0 comments on commit d859d5c

Please sign in to comment.