local-weather/.gitea/workflows/pipeline.yaml
ChrQR 1f7ae66339
All checks were successful
Docker Build & Publish / Build Docker (push) Successful in 1m7s
Updated Dockerfile and workflow as it was not including the secret.
2024-05-18 00:10:24 +02:00

40 lines
1019 B
YAML

name: Docker Build & Publish
on:
push:
branches: [main]
jobs:
build:
name: Build Docker
runs-on: ubuntu-latest
steps:
- name: Check out repository code 🛎️
uses: actions/checkout@v4
- name: Set up node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Docker Buildx 🚀
uses: docker/setup-buildx-action@v3
with:
install: true
version: latest
- name: Login to rannes.dev registry 🚢
uses: docker/login-action@v3
with:
registry: gitea.rannes.dev
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.RANNES_REGISTRY }}
- name: Build and push 🏗️
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: gitea.rannes.dev/rannes.dev/local-weather:latest
secrets: |
"places_api=${{ secrets.PLACES_API }}"