All checks were successful
Build and Push Docker Image / build (push) Successful in 14s
22 lines
533 B
YAML
22 lines
533 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [ v3 ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build image
|
|
run: docker build -t ${{ vars.OCI_REGISTRY }}/${{ gitea.repository }}:latest . --no-cache
|
|
|
|
- name: Push image
|
|
run: |
|
|
echo "${{ secrets.OCI_PASSWD }}" | docker login ${{ vars.OCI_REGISTRY }} -u gitea --password-stdin
|
|
docker push ${{ vars.OCI_REGISTRY }}/${{ gitea.repository }}:latest
|