Skip to content

CI - Build and push #15

CI - Build and push

CI - Build and push #15

Workflow file for this run

name: CI - Build and push
on:
push:
tags:
- "*"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build-and-push:
name: Build and push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.actor }}/odin:${{ github.ref_name }}
ghcr.io/${{ github.actor }}/odin:latest