-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dev
- Loading branch information
Showing
2 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release update to UAT | ||
run-name: Release update to UAT | ||
on: | ||
push: | ||
tags: [ 'v*.*.*-RELEASE' ] | ||
env: | ||
ARCHES_BASE: ghcr.io/flaxandteal/arches-base:coral-7.6 | ||
ARCHES_PROJECT: coral | ||
jobs: | ||
Build-Arches: | ||
runs-on: [self-hosted] | ||
outputs: | ||
image: ${{ steps.extract_image_name.outputs.image_name }} | ||
steps: | ||
- name: Set up Docker Context for Buildx | ||
id: buildx-context | ||
run: | | ||
docker context create builders | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
version: latest | ||
endpoint: builders | ||
|
||
- name: Echo extracted image name | ||
run: | | ||
echo "Extracted image name: ${{ steps.extract_image_name.outputs.image_name }}" | ||
# name: Build docker backend image | ||
# run: | | ||
# docker build --build-arg ARCHES_BASE=${{ env.ARCHES_BASE }} --build-arg ARCHES_PROJECT=${{ env.ARCHES_PROJECT }} . -t arches_${{ env.ARCHES_PROJECT }} | ||
- name: Log in to Github | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Tag and push | ||
run: | | ||
docker pull ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}:main-commit-${{ github.sha }} | ||
docker pull ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static:main-commit-${{ github.sha }} | ||
docker pull ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static_py:main-commit-${{ github.sha }} | ||
docker tag ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}:main-commit-${{ github.sha }} ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}:${{ github.ref_name }} | ||
docker tag ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static:main-commit-${{ github.sha }} ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static:${{ github.ref_name }} | ||
docker tag ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static_py:main-commit-${{ github.sha }} ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static_py:${{ github.ref_name }} | ||
docker push ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}:${{ github.ref_name }} | ||
docker push ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static:${{ github.ref_name }} | ||
docker push ghcr.io/flaxandteal/arches_${{ env.ARCHES_PROJECT }}_static_py:${{ github.ref_name }} |