summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <fmastenbroek@meta.com>2023-01-06 14:20:59 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2023-01-07 21:55:53 +0000
commita0d46acf850b7b7c899f9fcd5a300b0b01db274f (patch)
tree085740990063227d6ad0ea733b02622d67d257bb
parent3542350909b1213240e5097a1793a7c0733f6196 (diff)
ci: Fix GH Actions workflow for publishing Docker images
This change updates the GitHub Actions pipeline that is used to publish the Docker images when a new release is published. Since the web API implementation was moved to `opendc-web/opendc-web-server`, this workflow started failing. Furthermore, we remove the use of the deprecated `::set-output` syntax.
-rw-r--r--.github/workflows/publish.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 4f4357d0..6bc5e2bc 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -17,8 +17,7 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
- TAGS="${DOCKER_IMAGE}:${VERSION}"
- echo ::set-output name=tags::${TAGS}
+ echo "tags=${DOCKER_IMAGE}:${VERSION}" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/login-action@v2
with:
@@ -43,8 +42,7 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
- TAGS="${DOCKER_IMAGE}:${VERSION}"
- echo ::set-output name=tags::${TAGS}
+ echo "tags=${DOCKER_IMAGE}:${VERSION}" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/login-action@v2
with:
@@ -54,8 +52,7 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
- file: opendc-web/opendc-web-api/Dockerfile
- repository: atlargeresearch/opendc-web-api
+ file: opendc-web/opendc-web-server/Dockerfile
tags: ${{ steps.prep.outputs.tags }}
push-ui:
name: Push UI
@@ -69,8 +66,7 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
- TAGS="${DOCKER_IMAGE}:${VERSION}"
- echo ::set-output name=tags::${TAGS}
+ echo "tags=${DOCKER_IMAGE}:${VERSION}" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/login-action@v2
with:
@@ -81,5 +77,4 @@ jobs:
with:
push: true
context: opendc-web/opendc-web-ui
- repository: atlargeresearch/opendc-web-ui
tags: ${{ steps.prep.outputs.tags }}