From 8e02d3ed1148a7f7d51ca95e872ec5349e440366 Mon Sep 17 00:00:00 2001 From: Lukas Martini Date: Fri, 22 Mar 2024 17:58:12 +0100 Subject: [PATCH] Update frontend CI config --- .github/workflows/docker-publish.yml | 13 +++++-------- frontend/{Dockerfile => Containerfile} | 0 2 files changed, 5 insertions(+), 8 deletions(-) rename frontend/{Dockerfile => Containerfile} (100%) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 8fd0737..52d3ec6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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' @@ -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 . --file frontend/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 @@ -50,3 +46,4 @@ jobs: docker tag $IMAGE_NAME $IMAGE_ID:$VERSION docker push $IMAGE_ID:$VERSION + diff --git a/frontend/Dockerfile b/frontend/Containerfile similarity index 100% rename from frontend/Dockerfile rename to frontend/Containerfile