mirror of
https://github.com/foomo/contentfulproxy.git
synced 2025-10-16 12:25:37 +00:00
feat: add release version to docker-push github action
This commit is contained in:
parent
a39fab61a7
commit
0668e3a09c
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -50,6 +50,10 @@ jobs:
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Set tag on env
|
||||
id: vars
|
||||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF#refs/*/})
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
@ -57,7 +61,7 @@ jobs:
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/contentfulproxy:latest
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/contentfulproxy:$RELEASE_VERSION
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user