Skip to content

Package approbation image #38

Package approbation image

Package approbation image #38

Workflow file for this run

---
name: Package approbation image
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and export to local Docker
uses: docker/build-push-action@v3
with:
push: false
load: true
tags: vegaprotocol/approbation:local
- name: Sanity check docker image
run: |
docker run --rm vegaprotocol/approbation:local version || docker run --rm vegaprotocol/approbation:local
- name: Build and push to GitHub Docker registry
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
ghcr.io/vegaprotocol/approbation:latest
ghcr.io/vegaprotocol/approbation:${{github.ref_name}}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}