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:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
|
|
||||||
- name: Generate version value
|
|
||||||
run: echo "::set-env name=PACKAGE_VERSION::${GITHUB_REF##*/v}"
|
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: '**/node_modules'
|
path: '**/node_modules'
|
||||||
@ -74,17 +71,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Generate image tag value
|
- name: Generate builder values
|
||||||
run: echo "::set-env name=IMAGE_TAG::${GITHUB_REF##*/[vV]}" # `/refs/tags/v1.2.3` -> `1.2.3`
|
id: values
|
||||||
|
run: echo "::set-output name=version::${GITHUB_REF##*/[vV]}" # `/refs/tags/v1.2.3` -> `1.2.3`
|
||||||
|
|
||||||
- name: Make docker login
|
- name: Make docker login
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null
|
||||||
|
|
||||||
- name: Build image
|
- 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
|
- 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
|
- name: Push latest image
|
||||||
run: docker push "tarampampam/error-pages:latest"
|
run: docker push "tarampampam/error-pages:latest"
|
||||||
|
Loading…
Reference in New Issue
Block a user