Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jul 29, 2022
1 parent 4103d5e commit 89ede26
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- "v*"

jobs:
push:
runs-on: buildjet-4vcpu-ubuntu-2004
steps:
- uses: actions/checkout@v3
- uses: acorn-io/actions-login@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set tag
run: |
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "DRONE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "REPO=ghcr.io/acorn-io" >> $GITHUB_ENV
- name: Build and push rancher
run: |
set -e
make .dapper
./.dapper sh -c './scripts/build && ./scripts/package' || true
docker push ghcr.io/acorn-io/rancher:$TAG
docker push ghcr.io/acorn-io/rancher-agent:$TAG
docker push ghcr.io/acorn-io/rancher-runtime:$TAG

0 comments on commit 89ede26

Please sign in to comment.