Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/docker_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo ::set-output name=BUILD_TAG::$BUILD_TAG
echo ::set-output name=BUILD_DATE::$BUILD_DATE

- name: Read manifest.json
id: manifest
run: |
Expand All @@ -48,8 +48,9 @@ jobs:
echo ::set-output name=UI_RELEASE::$(cat manifest.json | jq -r '.ui.release')

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
provenance: false
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
Expand All @@ -69,4 +70,4 @@ jobs:
SOLIDITY_BUILDER_TAG=${{ steps.manifest.outputs.SOLIDITY_BUILDER_TAG }}
BASE_TAG=${{ steps.manifest.outputs.BASE_TAG }}
UI_TAG=${{ steps.manifest.outputs.UI_TAG }}
UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }}
UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }}
13 changes: 7 additions & 6 deletions .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set latest tag
if: github.event.action == 'released'
run: |
Expand All @@ -34,17 +34,17 @@ jobs:
- name: Set alpha tag
if: github.event.action == 'prereleased' && contains(github.ref, 'alpha')
run: |
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:alpha" >> $GITHUB_ENV
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:alpha" >> $GITHUB_ENV

- name: Set beta tag
if: github.event.action == 'prereleased' && contains(github.ref, 'beta')
run: |
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:beta" >> $GITHUB_ENV
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:beta" >> $GITHUB_ENV

- name: Set rc tag
if: github.event.action == 'prereleased' && contains(github.ref, 'rc')
run: |
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:rc" >> $GITHUB_ENV
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:rc" >> $GITHUB_ENV

- name: Set build tag
id: build_tag_generator
Expand All @@ -67,8 +67,9 @@ jobs:
echo ::set-output name=UI_RELEASE::$(cat manifest.json | jq -r '.ui.release')

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
provenance: false
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
Expand All @@ -88,4 +89,4 @@ jobs:
SOLIDITY_BUILDER_TAG=${{ steps.manifest.outputs.SOLIDITY_BUILDER_TAG }}
BASE_TAG=${{ steps.manifest.outputs.BASE_TAG }}
UI_TAG=${{ steps.manifest.outputs.UI_TAG }}
UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }}
UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }}