Merge pull request #7 from dpslwk/powerlables #36
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: Build | |
on: ['push'] | |
jobs: | |
build: | |
if: github.ref == 'refs/heads/main' | |
env: | |
IMAGE: ghcr.io/emfcamp/buildmap | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: | | |
${{ env.IMAGE }}:${{ github.sha }}-${{ github.run_number }} | |
${{ env.IMAGE }}:latest |