Skip to content

Merge pull request #13 from siobh9/staging #134

Merge pull request #13 from siobh9/staging

Merge pull request #13 from siobh9/staging #134

Workflow file for this run

name: registry
on: push
permissions:
packages: write
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set short git commit SHA
id: vars
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/siobh9/mask-bloc-bot:${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}