Release v4.9.8 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Versioned Image | |
on: | |
release: | |
types: [published] | |
env: | |
IMAGE_REG: ghcr.io | |
IMAGE_REPO: benc-uk/nodejs-demoapp | |
permissions: | |
packages: write | |
jobs: | |
publish-image: | |
name: 'Build & Publish' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Docker build image with version tag' | |
run: | | |
make image IMAGE_TAG=${{ github.event.release.tag_name }} | |
make image IMAGE_TAG=latest | |
- name: 'Push to container registry' | |
run: | | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login $IMAGE_REG -u $GITHUB_ACTOR --password-stdin | |
make push IMAGE_TAG=${{ github.event.release.tag_name }} | |
make push IMAGE_TAG=latest |