Skip to content

Merge pull request #7 from darwinia-network/aki-fix-exposures #19

Merge pull request #7 from darwinia-network/aki-fix-exposures

Merge pull request #7 from darwinia-network/aki-fix-exposures #19

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
env:
DOCKER_REGISTRY: ghcr.io
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: benjlevesque/short-sha@v1.2
- uses: olegtarasov/get-tag@v2.1
- name: Docker login
uses: docker/login-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.DOCKER_REGISTRY }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}:sha-${{ env.SHA }}
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}:${{ env.GIT_TAG_NAME }}