mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
Release action fixed
This commit is contained in:
parent
7957d16c0f
commit
a55ec08eef
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -17,9 +17,6 @@ jobs:
|
||||
with:
|
||||
node-version: 12
|
||||
|
||||
- name: Generate version value
|
||||
run: echo "::set-env name=PACKAGE_VERSION::${GITHUB_REF##*/v}"
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
@ -74,17 +71,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Generate image tag value
|
||||
run: echo "::set-env name=IMAGE_TAG::${GITHUB_REF##*/[vV]}" # `/refs/tags/v1.2.3` -> `1.2.3`
|
||||
- name: Generate builder values
|
||||
id: values
|
||||
run: echo "::set-output name=version::${GITHUB_REF##*/[vV]}" # `/refs/tags/v1.2.3` -> `1.2.3`
|
||||
|
||||
- name: Make docker login
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null
|
||||
|
||||
- name: Build image
|
||||
run: docker build --tag "tarampampam/error-pages:${IMAGE_TAG}" --tag "tarampampam/error-pages:latest" -f ./Dockerfile .
|
||||
run: docker build --tag "tarampampam/error-pages:${{ steps.values.outputs.version }}" --tag "tarampampam/error-pages:latest" -f ./Dockerfile .
|
||||
|
||||
- name: Push version image
|
||||
run: docker push "tarampampam/error-pages:${IMAGE_TAG}"
|
||||
run: docker push "tarampampam/error-pages:${{ steps.values.outputs.version }}"
|
||||
|
||||
- name: Push latest image
|
||||
run: docker push "tarampampam/error-pages:latest"
|
||||
|
Loading…
Reference in New Issue
Block a user