Skip to content

Commit

Permalink
fix: make ci build all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Jun 16, 2024
1 parent 6a401c3 commit ee5c922
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 60 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/deploy-beta.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Deploy Staging

env:
REGISTRY: ghcr.io
IMAGE_NAME: adofai-gg/frontend
name: Docker

on:
push:
branches:
- 'new-rewrite'
release:
types:
- published
jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -20,17 +17,24 @@ jobs:
id: buildx
with:
platforms: linux/amd64,linux/arm64

- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: name/app
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:staging
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.output.labels }}
push: true
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit ee5c922

Please sign in to comment.