This commit is contained in:
36
.github/workflows/docker.yaml
vendored
Normal file
36
.github/workflows/docker.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Build Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.lol3r.com
|
||||
username: leon
|
||||
password: ${{ secrets.DOCKER_PAT }}
|
||||
|
||||
- name: Build and push - nomad-scale
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./nomad-scale
|
||||
file: ./nomad-scale/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
gitea.lol3r.com/leon/nomad-scale:latest
|
||||
gitea.lol3r.com/leon/nomad-scale:${{ gitea.sha }}
|
||||
Reference in New Issue
Block a user