Change build action to release container #1
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 container | |
on: | |
push: | |
tags: [ "*" ] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build container | |
run: just build-container | |
publish: | |
runs-on: self-hosted | |
name: Publish container | |
needs: build | |
steps: | |
- name: Login to registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Publish image | |
run: | | |
podman push ghcr.io/virto-network/virto-proxy:$(just version) | |
podman push ghcr.io/virto-network/virto-proxy:latest |