Merge pull request #125 from vegaprotocol/fix/124-hardcoded-milestones #35
Workflow file for this run
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: 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 }} |