Skip to content

Commit

Permalink
ci: experiment with a GHA to publish test/dev images
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Feb 14, 2025
1 parent 9bed944 commit 990d2eb
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/publish-dev-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,13 @@ on:
branches:
- "**"
jobs:
set-tag:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.gen_version.outputs.VERSION }}
steps:
- name: set values
id: gen_version
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Use the value
# this sets environment variables for this step
env:
VERSION:
run: |
echo "${VERSION}"
docker:
runs-on: ubuntu-latest
steps:
- name: set tag
id: set_tag
run: |
echo "TAG=${GITHUB_REF}" | sed 's/\//_/g' >> $GITHUB_OUTPUT
echo "TAG=${GITHUB_REF}" | sed 's/refs\/heads\///g' | sed 's/\//_/g' >> $GITHUB_OUTPUT
-
name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 990d2eb

Please sign in to comment.