Skip to content

Commit

Permalink
chore: update docs 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Sep 18, 2023
1 parent 30c55a1 commit 689d9a2
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/actions/docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,34 @@ description: 'Publish Docs'
runs:
using: 'composite'
steps:
- name: Declare some variables
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
# - name: Declare some variables
# id: vars
# shell: bash
# run: |
# echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set output
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Build and push
# id: docker_build
# uses: docker/build-push-action@v5
# with:
# push: true
# tags: baloise/design-system-docs:${{ steps.vars.outputs.sha_short }},baloise/design-system-docs:latest
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: baloise/design-system-docs:${{ steps.vars.outputs.sha_short }},baloise/design-system-docs:latest

# - name: Deploy
# uses: addnab/docker-run-action@v3
Expand Down

0 comments on commit 689d9a2

Please sign in to comment.