Compare commits
No commits in common. "46bd2c2a8349535e75bf1506ab9f92dd54f76aa2" and "5b1f52e2cdef8135923bff404973b4c162d3f805" have entirely different histories.
46bd2c2a83
...
5b1f52e2cd
|
|
@ -1,49 +0,0 @@
|
||||||
name: Build, Test and Register Docker Images
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- production
|
|
||||||
pull_request:
|
|
||||||
types: [closed]
|
|
||||||
branches:
|
|
||||||
- production
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-publish-frontend:
|
|
||||||
runs-on: coc
|
|
||||||
container:
|
|
||||||
image: docker
|
|
||||||
steps:
|
|
||||||
- name: Install node
|
|
||||||
run: apk add nodejs
|
|
||||||
- name: Login to Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: cocgit.scalingdone.com
|
|
||||||
username: ${{ secrets.RUNNER_REGISTRY_USERNAME }}
|
|
||||||
password: ${{ secrets.RUNNER_REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build Docker image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
tags: |
|
|
||||||
cocgit.scalingdone.com/jat/branchingtest/appimage:latest
|
|
||||||
${{ github.ref == 'refs/heads/production' && format('cocgit.scalingdone.com/jat/branchingtest/appimage:{0}', github.sha) || '' }}
|
|
||||||
push: true
|
|
||||||
|
|
||||||
reload-staging:
|
|
||||||
if: github.ref == 'refs/heads/production'
|
|
||||||
runs-on: coc
|
|
||||||
container:
|
|
||||||
image: curlimages/curl
|
|
||||||
networks:
|
|
||||||
- coc
|
|
||||||
needs:
|
|
||||||
- build-publish-frontend
|
|
||||||
steps:
|
|
||||||
- name: Trigger Watchtower to reload docker image
|
|
||||||
run: |
|
|
||||||
echo "hi"
|
|
||||||
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
FROM alpine:latest
|
|
||||||
Loading…
Reference in New Issue