Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give images pushed by CI version numbers #549

Merged
merged 16 commits into from
Jan 25, 2024
2 changes: 1 addition & 1 deletion .github/actions/push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
using: "composite"
steps:
-
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
leighmcculloch marked this conversation as resolved.
Show resolved Hide resolved
with:
name: ${{ inputs.artifact_name }}
path: /tmp/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
name: Soroban-Dev
name: Future

# The `:soroban-dev` tag points to a build containing unreleased versions of
# The `:future` tag points to a build containing unreleased versions of
# software that have been informally released to the futurenet network.

on:
push:
branches:
- master
pull_request:

# Prevent more than one build of this workflow for a branch to be running at the
# same time, and if multiple are queued, only run the latest, cancelling any
# already running build. The exception being any protected branch, such as
# master, where a build for every commit will run.
concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}
cancel-in-progress: true
workflow_call:
secrets:
DOCKERHUB_USERNAME:
required: false
DOCKERHUB_TOKEN:
required: false
inputs:
sha:
description: 'Sha to build'
type: 'string'
required: true
tag-prefix:
description: 'Prefix for the tag name'
type: 'string'
default: ''

jobs:

complete:
if: always()
needs: [manifest]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

amd64:
uses: ./.github/workflows/build.yml
uses: ./.github/workflows/build-image.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
sha: ${{ inputs.sha }}
arch: amd64
tag: soroban-dev-amd64
tag: ${{ inputs.tag-prefix }}future-amd64
xdr_ref: v20.0.2
core_ref: v20.1.0
core_supports_enable_soroban_diagnostic_events: "true"
Expand All @@ -47,13 +43,14 @@ jobs:
}

arm64:
uses: ./.github/workflows/build.yml
uses: ./.github/workflows/build-image.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
sha: ${{ inputs.sha }}
arch: arm64
tag: soroban-dev-arm64
tag: ${{ inputs.tag-prefix }}future-arm64
xdr_ref: v20.0.2
core_ref: v20.1.0
core_supports_enable_soroban_diagnostic_events: "true"
Expand All @@ -74,5 +71,6 @@ jobs:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
tag: soroban-dev
tag: ${{ inputs.tag-prefix }}future
tag-alias: future
images: ${{ needs.amd64.outputs.image }} ${{ needs.arm64.outputs.image }}
Loading
Loading