Skip to content

Commit

Permalink
Update frontend CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
lutoma committed Mar 22, 2024
1 parent 80d765d commit 9804a10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Docker frontend
name: Frontend container

on:
push:
# Publish `main` as Docker `latest` image.
branches:
- main

# Publish `v1.2.3` tags as releases.
tags:
- v*
paths:
- 'frontend/**'

env:
IMAGE_NAME: lutoma.org

jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
Expand All @@ -24,7 +20,7 @@ jobs:
- uses: actions/checkout@v2

- name: Build image
run: docker build . --file Dockerfile --build-arg "FONTAWESOME_AUTH_TOKEN=${{ secrets.FONTAWESOME_AUTH_TOKEN }}" --tag $IMAGE_NAME
run: docker build frontend --file Containerfile --build-arg "FONTAWESOME_AUTH_TOKEN=${{ secrets.FONTAWESOME_AUTH_TOKEN }}" --tag $IMAGE_NAME

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
Expand All @@ -50,3 +46,4 @@ jobs:
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
File renamed without changes.

0 comments on commit 9804a10

Please sign in to comment.