feat: builds the provider as an image #6
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: ☁️ Publish Artifacts | |
on: | |
push: | |
tags: | |
- v0.* | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
jobs: | |
artifacts: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: ⬇️ Git clone the repository | |
uses: actions/checkout@v3 | |
- name: 📦 Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21' | |
- name: 📦 Build package | |
run: make build | |
- name: ☁️ Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: bin/* | |
- name: Build Image | |
run: make package tag=${{ github.ref_name }} | |
- name: Publish Image | |
run: | | |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USERNAME --password-stdin | |
make push tag=${{ github.ref_name }} |