Skip to content

Commit

Permalink
Change build action to release container
Browse files Browse the repository at this point in the history
  • Loading branch information
olanod committed Mar 1, 2024
1 parent 1e51170 commit 567dfcf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 22 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ image := "ghcr.io/virto-network/virto-proxy"
@default:
just --list

@version:
echo {{ ver }}

build-container:
#!/usr/bin/env nu
'FROM rust:1.75 as builder
Expand Down

0 comments on commit 567dfcf

Please sign in to comment.