exmr/.forgejo/workflows/docker.yaml
Vladimir Rubin 13a1f32d8d
All checks were successful
Checks / check (push) Successful in -6m19s
Build and Push Docker Image / Build and Push Image (push) Successful in -6m56s
ci: migrate to forgejo
2024-12-07 16:27:41 +02:00

34 lines
898 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
name: Build and Push Image
runs-on: ubuntu-latest-root
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.vavakado.xyz
username: vavakado
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build Docker Image
run: |
TODAY=$(date +'%Y-%m-%d')
docker build -t git.vavakado.xyz/vavakado/exmr:${TODAY} .
docker tag git.vavakado.xyz/vavakado/exmr:${TODAY} git.vavakado.xyz/vavakado/exmr:latest
- name: Push Docker Image
run: |
TODAY=$(date +'%Y-%m-%d')
docker push git.vavakado.xyz/vavakado/exmr:${TODAY}
docker push git.vavakado.xyz/vavakado/exmr:latest