Skip to content

v.0.0.1

v.0.0.1 #9

Workflow file for this run

name: Build Image
on:
release:
types: [created]
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set project version
id: vars
run: |
version=$(make version)
echo "VERSION=$version" >> $GITHUB_ENV
- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: set repo_name
run: |
echo "REPO_NAME=${{ github.event.repository.name }}" >> $GITHUB_ENV
- name: Build acm docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ./
file: ./Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.OWNER_LC }}/${{ env.REPO_NAME }}:v.${{ env.VERSION }}
${{ env.REGISTRY }}/${{ env.OWNER_LC }}/${{ env.REPO_NAME }}:latest