mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
👷 Automate publication of docker images in a new release
This commit is contained in:
parent
40e9a78f67
commit
71fd6640af
14
.github/workflows/build-tag.yml
vendored
14
.github/workflows/build-tag.yml
vendored
@ -21,10 +21,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gh_ref: ${{ github.ref_name }}
|
gh_ref: ${{ github.ref_name }}
|
||||||
|
|
||||||
# publish-final-tag:
|
publish-final-tag:
|
||||||
# if: ${{ !contains(github.ref_name, '-RC') && !contains(github.ref_name, '-alpha') && !contains(github.ref_name, '-beta') && contains(github.ref_name, '.') }}
|
if: ${{ !contains(github.ref_name, '-RC') && !contains(github.ref_name, '-alpha') && !contains(github.ref_name, '-beta') && contains(github.ref_name, '.') }}
|
||||||
# needs: build-docker
|
needs: build-docker
|
||||||
# uses: ./.github/workflows/release.yml
|
uses: ./.github/workflows/release.yml
|
||||||
# secrets: inherit
|
secrets: inherit
|
||||||
# with:
|
with:
|
||||||
# gh_ref: ${{ github.ref_name }}
|
gh_ref: ${{ github.ref_name }}
|
||||||
|
|||||||
58
.github/workflows/release.yml
vendored
58
.github/workflows/release.yml
vendored
@ -36,39 +36,39 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ steps.vars.outputs.gh_ref }}
|
ref: ${{ steps.vars.outputs.gh_ref }}
|
||||||
|
|
||||||
# # --- Publicly release the docker images ---
|
# --- Publicly release the docker images ---
|
||||||
# - name: Login to private registry
|
- name: Login to private registry
|
||||||
# uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
# with:
|
with:
|
||||||
# registry: ${{ secrets.DOCKER_REGISTRY }}
|
registry: ${{ secrets.DOCKER_REGISTRY }}
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# - name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
# uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.PUB_DOCKER_USERNAME }}
|
username: ${{ secrets.PUB_DOCKER_USERNAME }}
|
||||||
# password: ${{ secrets.PUB_DOCKER_PASSWORD }}
|
password: ${{ secrets.PUB_DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# - name: Publish docker images to DockerHub
|
- name: Publish docker images to DockerHub
|
||||||
# env:
|
env:
|
||||||
# TAG: ${{ steps.vars.outputs.gh_ref }}
|
TAG: ${{ steps.vars.outputs.gh_ref }}
|
||||||
# REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
||||||
# HUB: ${{ secrets.PUB_DOCKER_HUB }}
|
HUB: ${{ secrets.PUB_DOCKER_HUB }}
|
||||||
# run: |
|
run: |
|
||||||
# IMAGES=("frontend" "backend" "exporter")
|
IMAGES=("frontend" "backend" "exporter")
|
||||||
# EXTRA_TAGS=("main" "latest")
|
EXTRA_TAGS=("main" "latest")
|
||||||
|
|
||||||
# for image in "${IMAGES[@]}"; do
|
for image in "${IMAGES[@]}"; do
|
||||||
# docker pull "$REGISTRY/penpotapp/$image:$TAG"
|
docker pull "$REGISTRY/penpotapp/$image:$TAG"
|
||||||
# docker tag "$REGISTRY/penpotapp/$image:$TAG" "penpotapp/$image:$TAG"
|
docker tag "$REGISTRY/penpotapp/$image:$TAG" "penpotapp/$image:$TAG"
|
||||||
# docker push "penpotapp/$image:$TAG"
|
docker push "penpotapp/$image:$TAG"
|
||||||
|
|
||||||
# for tag in "${EXTRA_TAGS[@]}"; do
|
for tag in "${EXTRA_TAGS[@]}"; do
|
||||||
# docker tag "$REGISTRY/penpotapp/$image:$TAG" "penpotapp/$image:$tag"
|
docker tag "$REGISTRY/penpotapp/$image:$TAG" "penpotapp/$image:$tag"
|
||||||
# docker push "penpotapp/$image:$tag"
|
docker push "penpotapp/$image:$tag"
|
||||||
# done
|
done
|
||||||
# done
|
done
|
||||||
|
|
||||||
# --- Release notes extraction ---
|
# --- Release notes extraction ---
|
||||||
- name: Extract release notes from CHANGES.md
|
- name: Extract release notes from CHANGES.md
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user