Start tools #15
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: Acorn on Push | |
on: | |
push: | |
branches: | |
- main | |
- prod | |
jobs: | |
publish: | |
runs-on: buildjet-4vcpu-ubuntu-2004 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: acorn-io/actions-setup@v1 | |
- uses: acorn-io/actions-login@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push | |
run: | | |
VERSION=${{ github.ref_name }}}-$( cut -c 1-7 <<< '${{ github.sha }}') | |
export VERSION | |
acorn build --push -t ghcr.io/${{ github.repository }}:${{ github.ref_name }} . |