Skip to content

Commit

Permalink
chore: workflow is tested now, change ci tag back to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Aug 16, 2023
1 parent c7f1d3b commit 5390378
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dev-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
uses: codecov/codecov-action@v3

publish-npm:
if: github.ref == 'refs/heads/node-migration'
if: github.ref == 'refs/heads/v3'
needs:
- lint
- unit-test
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
shell: bash

docker-push:
if: github.ref == 'refs/heads/node-migration'
if: github.ref == 'refs/heads/v3'
needs:
- lint
- unit-test
Expand Down Expand Up @@ -301,14 +301,13 @@ jobs:
id: docker-tags
# todo: update to v3 before merging!
run: |
echo "permanent-tag=node-migration-$(date +"%Y-%m-%dT%H.%M.%S")-${GITHUB_SHA:0:7}" >>$GITHUB_OUTPUT
echo "permanent-tag=v3-$(date +"%Y-%m-%dT%H.%M.%S")-${GITHUB_SHA:0:7}" >>$GITHUB_OUTPUT
- name: build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
# todo: update to v3 before merging!
tags: |
hsldevcom/digitransit-ui:node-migration
hsldevcom/digitransit-ui:v3
hsldevcom/digitransit-ui:${{ steps.docker-tags.outputs.permanent-tag }}
# https://github.com/docker/build-push-action/blob/9472e9021074a3cb3279ba431598b8836d40433f/docs/advanced/cache.md#github-cache
# https://github.com/moby/buildkit#registry-push-image-and-cache-separately
Expand Down

0 comments on commit 5390378

Please sign in to comment.