Compare commits

..

No commits in common. "d6243574e6cc9e625ce92910b977602a3e6d3a49" and "968673e8cd979c49be193a81c1c44b2a105ab926" have entirely different histories.

2 changed files with 1 additions and 42 deletions

View file

@ -1,41 +0,0 @@
name: Build and push docker image
# start workflow every time a tag/release is created
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: /repo
# build the docker container
steps:
- name: ✨ Installing just command runner
run: |
# download and extract just to /bin/just
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /bin
just --help || echo "Error: 'just' wasn't found. Maybe the download failed?"
- name: ⬇️ Checkout Repository
uses: actions/checkout@v4
- name: 🐋 Build Container
run: |
# build the container
just build ${{ github.ref }}
- name: 🐳 Publish Container
run: |
echo "${{ secrets.PUBLISH_TOKEN }}" | docker login gitpot.dev -u sangelo --password-stdin
docker push gitpot.dev/sangelo/website:${{ github.ref }}
# publish tag latest as well
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
docker tag gitpot.dev/sangelo/website:${{ github.ref }} gitpot.dev/sangelo/website:latest
docker push gitpot.dev/sangelo/website:latest
fi

View file

@ -61,7 +61,7 @@ run tag=default_tag runner=default_runner:
publish image=default_image runner=default_runner:
@echo "Publishing with '{{runner}}'..."
@# log into gitpot
echo "$GITPOT_TOKEN" | {{runner}} login gitpot.dev -u $GITPOT_USERNAME --password-stdin
{{runner}} login gitpot.dev -u $GITPOT_USERNAME -p $GITPOT_PASSWORD
@# push the specified image to the container registry
{{runner}} push {{image}}
@echo "Published {{image}} successfuly! Use '{{runner}} pull {{image}}' to pull the container."