Skip to content

Commit

Permalink
edit docker tags for auto img update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilevos committed Aug 24, 2023
1 parent d8f8948 commit 3ad65c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/frontend_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set outputs
id: vars
run: |
echo "date=$(date +%Y-%m-%dT%H-%M-%S)" >> "${GITHUB_OUTPUT}"
echo "sha_short=$(git rev-parse --short HEAD)" >> "${GITHUB_OUTPUT}"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -36,4 +42,4 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
tags: |
ghcr.io/marigold-dev/tezos-snapshot-web:latest
ghcr.io/marigold-dev/tezos-snapshot-web:${{ github.sha }}
ghcr.io/marigold-dev/tezos-snapshot-web:${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.sha_short }}
8 changes: 7 additions & 1 deletion .github/workflows/server_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set outputs
id: vars
run: |
echo "date=$(date +%Y-%m-%dT%H-%M-%S)" >> "${GITHUB_OUTPUT}"
echo "sha_short=$(git rev-parse --short HEAD)" >> "${GITHUB_OUTPUT}"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -38,5 +44,5 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
tags: |
ghcr.io/marigold-dev/tezos-snapshot-server:latest
ghcr.io/marigold-dev/tezos-snapshot-server:${{ github.sha }}
ghcr.io/marigold-dev/tezos-snapshot-server:${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.sha_short }}

0 comments on commit 3ad65c7

Please sign in to comment.