Skip to content

Commit dec180a

Browse files
author
Raymond Ottun
committed
ci: fix docker tagging
1 parent 284183b commit dec180a

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
needs: test
3232
runs-on: ubuntu-latest
3333

34+
outputs:
35+
tag: ${{ steps.tag_version.outputs.new_tag }}
36+
3437
steps:
3538
- uses: actions/checkout@v2
3639

@@ -74,20 +77,19 @@ jobs:
7477
username: ${{ github.actor }}
7578
password: ${{ secrets.GITHUB_TOKEN }}
7679

77-
- name: Extract metadata (tags, labels) for Docker
78-
id: meta
79-
uses: docker/metadata-action@v4
80-
with:
81-
images: |
82-
${{ github.actor }}/mimic
83-
ghcr.io/${{ github.repository }}
80+
# - name: Extract metadata (tags, labels) for Docker
81+
# id: meta
82+
# uses: docker/metadata-action@v4
83+
# with:
84+
# images: |
85+
# ${{ github.actor }}/mimic
86+
# ghcr.io/${{ github.repository }}
8487

8588
- name: Build and push Docker images
86-
uses: docker/build-push-action@v4
89+
uses: docker/build-push-action@v2
8790
with:
8891
context: .
8992
push: true
90-
# tags: ${{ steps.meta.outputs.tags }}
91-
tags: v0.01
92-
labels: ${{ steps.meta.outputs.labels }}
93+
tags: ${{ needs.version.outputs.tag }}
94+
labels: http-mocking,fakerjs,mocking
9395

0 commit comments

Comments
 (0)