maciejpedzi.ch/.gitea/workflows/build-and-deploy.yaml

15 lines
516 B
YAML

name: Build and deploy
on: [push]
jobs:
Build-And-Deploy:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t ${{ vars.IMAGE_TAG }} .
- name: Rerun website's Docker container
run: chmod +x ./rerun-container.sh && (./rerun-container.sh ${{ vars.CONTAINER_NAME }} ${{ vars.PORT_PAIR }} ${{ vars.NETWORK_NAME }} ${{ vars.IMAGE_TAG }})