archean-server-pelican/.gitea/workflows/deploy.yaml

23 lines
635 B
YAML
Raw Normal View History

2024-10-18 23:24:38 +02:00
name: Deploy
2024-10-18 23:12:17 +02:00
on:
- push:
2024-10-18 23:35:21 +02:00
- branches: [master]
2024-10-18 23:12:17 +02:00
jobs:
2024-10-18 23:35:21 +02:00
BuildandPush-Docker:
2024-10-18 23:12:17 +02:00
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker Image
run: docker buildx build -t ${{ vars.DOCKER_TAG }} .
2024-10-18 23:35:21 +02:00
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: docker push ${{ vars.DOCKER_TAG }}