Skip to content

Update to Ubuntu 23.10 (Mantic Minotaur) #22

Update to Ubuntu 23.10 (Mantic Minotaur)

Update to Ubuntu 23.10 (Mantic Minotaur) #22

Workflow file for this run

name: Docker Image
on:
push: {}
workflow_dispatch: {}
concurrency: docker
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Compute Docker metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch }}
type=ref,event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
file: Dockerfile
push: true
build-args: COMMIT=${{ github.sha }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
- name: Deploy grep with latest image
env:
ZEROKUBE_TOKEN: ${{ secrets.ZEROKUBE_TOKEN }}
run: |
curl https://vm1.src.codes/deploy --data grep \
--header "Authorization: Bearer $ZEROKUBE_TOKEN"
- name: Deploy fzf with latest image
env:
ZEROKUBE_TOKEN: ${{ secrets.ZEROKUBE_TOKEN }}
run: |
curl https://vm1.src.codes/deploy --data fzf \
--header "Authorization: Bearer $ZEROKUBE_TOKEN"