Skip to content

Merge pull request #2 from elgohr-update/master #15

Merge pull request #2 from elgohr-update/master

Merge pull request #2 from elgohr-update/master #15

Workflow file for this run

# name of the action
name: publish
# trigger on push events with branch master
on:
push:
branches: [ master ]
# pipeline to execute
jobs:
publish:
runs-on: ubuntu-latest
container:
image: golang:latest
steps:
- name: clone
uses: actions/checkout@v2
with:
# ensures we fetch tag history for the repository
fetch-depth: 0
- name: build
env:
GOOS: linux
CGO_ENABLED: '0'
run: |
make build-static-ci
- name: publish
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: davidvader/skelly
cache: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.STATE_RELEASE_VERSION }}"