Skip to content

Merge pull request #23 from schristoff/schristoff_fixoteljeagerimage #19

Merge pull request #23 from schristoff/schristoff_fixoteljeagerimage

Merge pull request #23 from schristoff/schristoff_fixoteljeagerimage #19

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
check-latest: true
- name: Set up Mage
run: go run mage.go ConfigureAgent
- name: Test
run: mage -v Build
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: mage -v Publish
env:
PORTER_REGISTRY: ghcr.io/getporter