-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update Github Actions #5
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
repository: | ||
name: firefly-tezosconnect | ||
description: Firefly Tezos Connect | ||
homepage: https://github.com/hyperledger/firefly-tezosconnect | ||
default_branch: main | ||
has_downloads: false | ||
has_downloads: true | ||
has_issues: true | ||
has_projects: true | ||
has_wiki: false | ||
has_wiki: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we have content for a Tezosconnect specifici wiki? Typically we've been steering away from repo-specific Wikis and putting everything in the main FireFly docs site. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've found this option for EVM Connect and thought that it's about the main FireFly docs site. |
||
archived: false | ||
private: false | ||
allow_squash_merge: false | ||
allow_merge_commit: false | ||
allow_rebase_merge: true | ||
allow_squash_merge: true | ||
allow_merge_commit: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Docker Main Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set build tag | ||
id: build_tag_generator | ||
run: | | ||
RELEASE_TAG=$(curl https://api.github.com/repos/${{ github.repository }}/releases/latest -s | jq .tag_name -r) | ||
BUILD_TAG=$RELEASE_TAG-$(date +"%Y%m%d")-$GITHUB_RUN_NUMBER | ||
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_OUTPUT | ||
echo "name=BUILD_DATE=$BUILD_DATE" >> $GITHUB_OUTPUT | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
builder: ${{ steps.buildx.outputs.name }} | ||
push: true | ||
platforms: linux/amd64 | ||
provenance: false | ||
tags: ghcr.io/${{ github.repository }}:${{ steps.build_tag_generator.outputs.BUILD_TAG }},ghcr.io/${{ github.repository }}:head | ||
labels: | | ||
commit=${{ github.sha }} | ||
build_date=${{ steps.build_tag_generator.outputs.BUILD_DATE }} | ||
tag=${{ steps.build_tag_generator.outputs.BUILD_TAG }} | ||
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache | ||
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max | ||
build-args: | | ||
BUILD_VERSION=${{ steps.build_tag_generator.outputs.BUILD_TAG }} | ||
GIT_REF=${{ github.ref }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Docker Release Build | ||
|
||
on: | ||
release: | ||
types: [released, prereleased] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set latest tag | ||
if: github.event.action == 'released' | ||
run: | | ||
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository }}:latest" >> $GITHUB_ENV | ||
|
||
- name: Set alpha tag | ||
if: github.event.action == 'prereleased' && contains(github.ref, 'alpha') | ||
run: | | ||
echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository }}: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 }}: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 }}:rc" >> $GITHUB_ENV | ||
|
||
- name: Set build tag | ||
id: build_tag_generator | ||
run: | | ||
RELEASE_TAG=$(curl https://api.github.com/repos/${{ github.repository }}/releases/latest -s | jq .tag_name -r) | ||
BUILD_TAG=$RELEASE_TAG-$(date +"%Y%m%d")-$GITHUB_RUN_NUMBER | ||
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_OUTPUT | ||
echo "BUILD_DATE=$BUILD_DATE" >> $GITHUB_OUTPUT | ||
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_OUTPUT | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
builder: ${{ steps.buildx.outputs.name }} | ||
push: true | ||
platforms: linux/amd64 | ||
provenance: false | ||
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }},ghcr.io/${{ github.repository }}:head,${{ env.DOCKER_TAGS }} | ||
labels: | | ||
commit=${{ github.sha }} | ||
build_date=${{ steps.build_tag_generator.outputs.BUILD_DATE }} | ||
tag=${{ steps.build_tag_generator.outputs.RELEASE_TAG }} | ||
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache | ||
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max | ||
build-args: | | ||
BUILD_VERSION=${{ steps.build_tag_generator.outputs.RELEASE_TAG }} | ||
GIT_REF=${{ github.ref }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What downloads will this repo have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this option is about releases tar files,
which will appear soon when the service release.