2023-11-08 06:50:57 +00:00
|
|
|
name: Build and Push Image
|
|
|
|
on: [ push ]
|
2023-11-08 06:46:55 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-11-08 06:50:57 +00:00
|
|
|
build:
|
|
|
|
name: Build and push image
|
2023-11-08 06:46:55 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-11-12 19:21:00 +00:00
|
|
|
container: catthehacker/ubuntu:act-latest
|
2023-11-08 06:50:57 +00:00
|
|
|
|
2023-11-08 06:46:55 +00:00
|
|
|
steps:
|
2023-11-14 20:49:39 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-08 06:50:57 +00:00
|
|
|
|
2023-11-12 19:29:31 +00:00
|
|
|
- name: Install Tools
|
2023-11-14 20:49:39 +00:00
|
|
|
run: sudo apt-get -y update && sudo apt-get -y install docker
|
2023-11-12 19:29:31 +00:00
|
|
|
|
2023-11-14 20:49:39 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
2023-11-08 06:50:57 +00:00
|
|
|
|
2023-11-14 20:49:39 +00:00
|
|
|
- name: Login to Docker Registry
|
|
|
|
uses: docker/login-action@v3
|
2023-11-08 06:50:57 +00:00
|
|
|
with:
|
2023-11-14 20:49:39 +00:00
|
|
|
registry: git.tbrnt.ch
|
2023-11-08 06:50:57 +00:00
|
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
|
2023-11-14 20:49:39 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
git.tbrnt.ch/tobru/ioteer:latest
|