(ci): fixup edge tag, add prefix
@@ -28,13 +28,6 @@ jobs:
- name: Test
run: go test -v -timeout 300s -race ./...
- - name: Login to DockerHub
- if: github.event_name != 'pull_request'
- uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
-
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
@@ -45,13 +38,20 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=sha
+ - name: Login to DockerHub
+ if: github.event_name != 'pull_request'
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
- name: Build and push docker image with edge tag
if: github.event_name == 'push'
uses: docker/build-push-action@v2
with:
context: .
- labels: ${{ steps.meta.outputs.labels }},org.opencontainers.image.version=edge
- tags: edge
+ labels: ${{ steps.meta.outputs.labels }}
+ tags: avenga/couper:edge
push: true
- name: Build and push docker image with specific tag
