v0.2.13 #13
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: Docker Image from release tags | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install libsystemd headers | |
run: sudo apt-get update && sudo apt-get install libsystemd-dev | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: -p bugs -p unused --timeout=3m | |
- name: Docker Login | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ secrets.DOCKER_REGISTRY }} | |
username: ${{ secrets.DOCKER_REGISTRY_USER }} | |
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} | |
- name: Build the Docker images | |
run: | | |
export GITHUB_TAG_NAME=${GITHUB_REF##*/} | |
make dockerimage | |
make dockerpush |