Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Automate Docker/GitHub Packages Publishing #1318

Merged
merged 43 commits into from
Oct 7, 2021
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
40774ed
for replacement txs, only add to pool once
MicaiahReid Sep 22, 2021
26ef871
fix return value for already queued tx
MicaiahReid Sep 22, 2021
540c5b5
allow replacement of future-nonce transactions
MicaiahReid Sep 22, 2021
192f117
increase nonce to fix test
MicaiahReid Sep 22, 2021
9579d77
some cleanup
MicaiahReid Sep 24, 2021
6e47eb6
add error for replaced txs
MicaiahReid Sep 24, 2021
103a39b
refactor
MicaiahReid Sep 24, 2021
06192eb
remove unused functions
MicaiahReid Sep 24, 2021
22b7857
allow origins to optionally be used in txpool constructor
MicaiahReid Sep 25, 2021
4d28dc7
remove impossible code path
MicaiahReid Sep 27, 2021
cd9cd76
transaction pool tests
MicaiahReid Sep 27, 2021
a2c0a62
fix bug with looping over empty executables
MicaiahReid Sep 29, 2021
82df5b8
add await to assert.rejects
MicaiahReid Sep 29, 2021
86d3720
fix assert.reject fail case messaging
MicaiahReid Sep 30, 2021
1583570
initial run at docker publish
MicaiahReid Oct 5, 2021
7bc142a
fix action versions
MicaiahReid Oct 5, 2021
d75ee94
hardcode version for now
MicaiahReid Oct 5, 2021
3ec907a
allow manual workflow running
MicaiahReid Oct 5, 2021
9298aeb
fix reference to version
MicaiahReid Oct 5, 2021
d353507
change some data to temp test data
MicaiahReid Oct 5, 2021
8cb73c2
update docker publish tags
MicaiahReid Oct 5, 2021
48b5477
set path to dockerfile
MicaiahReid Oct 5, 2021
af811ba
trying to get path to Dockerfile working
MicaiahReid Oct 5, 2021
85ef064
test package publish
MicaiahReid Oct 5, 2021
9c0a013
update repo to publish for test
MicaiahReid Oct 5, 2021
bf05297
actually pub to gh packages
MicaiahReid Oct 5, 2021
c29ee8a
update release workflow to publish to docker/gh packages
MicaiahReid Oct 6, 2021
ec7fd4c
delete unused files
MicaiahReid Oct 6, 2021
0d06aca
initial run at docker publish
MicaiahReid Oct 5, 2021
14f226d
fix action versions
MicaiahReid Oct 5, 2021
cd6afee
hardcode version for now
MicaiahReid Oct 5, 2021
bf13a8b
allow manual workflow running
MicaiahReid Oct 5, 2021
a9ad7d3
fix reference to version
MicaiahReid Oct 5, 2021
1512cad
change some data to temp test data
MicaiahReid Oct 5, 2021
014972c
update docker publish tags
MicaiahReid Oct 5, 2021
7fc42ae
set path to dockerfile
MicaiahReid Oct 5, 2021
9474af4
trying to get path to Dockerfile working
MicaiahReid Oct 5, 2021
043e967
test package publish
MicaiahReid Oct 5, 2021
0c69e09
update repo to publish for test
MicaiahReid Oct 5, 2021
9db9dd2
actually pub to gh packages
MicaiahReid Oct 5, 2021
3b346eb
update release workflow to publish to docker/gh packages
MicaiahReid Oct 6, 2021
6a118c8
delete unused files
MicaiahReid Oct 6, 2021
9d49411
Merge branch 'chore/automate-publishing' of github.com:trufflesuite/g…
MicaiahReid Oct 6, 2021
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
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,34 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# publish to docker and github packages
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: |
trufflesuite/ganache
ghcr.io/${{ github.repository}}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: ./src/packages/ganache/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}