Add will_set to Paho #17
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: Build and push p2k16-label docker image | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-push-docker-image: | |
runs-on: ubuntu-latest | |
# steps to perform in job | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Login to Github Packages | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get the version | |
id: vars | |
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10}) | |
- name: Build image and push to GitHub Container Registry | |
uses: docker/build-push-action@v2 | |
with: | |
# relative path to the place where source code with Dockerfile is located | |
context: ./p2k16-label | |
# Note: tags has to be all lower-case | |
tags: | | |
ghcr.io/bitraf/p2k16-label:${{steps.vars.outputs.tag}} | |
ghcr.io/bitraf/p2k16-label:latest | |
# this will push on every release, which is what we want | |
push: true | |
# - name: Debug info | |
# id: debug1 | |
# run: | | |
# echo debug github.ref = ${GITHUB_REF} | |
# echo debug2 github.ref = ${{ github.ref }} | |
# so, GITHUB_REF is equal to the release tag, for example refs/tags/v0.3.0.2 | |
# and github.ref is also equal to the release tag, example refs/tags/v0.3.0.5 |