Skip to content

Commit

Permalink
feat: add image build
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jan 21, 2024
1 parent 2a56cdf commit 97b6b2f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Image

on:
push:
branches: [ "v2" ]

env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build image
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/chronos-fe:main .

- name: Publish image
if: github.repository == 'vanilla-os/chronos-fe'
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/vanilla-os/chronos-fe:main"

0 comments on commit 97b6b2f

Please sign in to comment.