Skip to content

Commit

Permalink
Move latest tagging to new step
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpelt committed Jun 21, 2024
1 parent 3d7f0f0 commit 375e91e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create and publish a Docker image
name: Build, test and release OpenUI

on:
push:
Expand Down Expand Up @@ -120,11 +120,6 @@ jobs:
push-to-registry: true

test:
permissions:
contents: read
packages: write
attestations: write
id-token: write
needs: build-and-push-image
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down Expand Up @@ -172,12 +167,25 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30

release:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get short SHA
id: get_short_sha
run: echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
- name: Tag latest image
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/openui-v2'
env:
Expand Down

0 comments on commit 375e91e

Please sign in to comment.