fix(test): codecov | net/url #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker | |
on: | |
pull_request: | |
paths: | |
- "**" | |
- "!misc/**" | |
- "!docs/**" | |
- "!**.md" | |
push: | |
branches: [ "master" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build main Docker image | |
env: | |
owner: ${{ github.repository_owner }} | |
reponame: ${{ github.event.repository.name }} | |
run: | | |
docker build -t ghcr.io/${owner}/${reponame} . | |
docker tag ghcr.io/${owner}/${reponame}:latest ghcr.io/${owner}/${reponame}:${GITHUB_SHA::8} | |
- name: Build slim Docker images | |
env: | |
owner: ${{ github.repository_owner }} | |
reponame: ${{ github.event.repository.name }} | |
run: | | |
docker build --target=gnoland-slim -t ghcr.io/${owner}/${reponame}/gnoland-slim . | |
docker build --target=gnokey-slim -t ghcr.io/${owner}/${reponame}/gnokey-slim . | |
docker build --target=gno-slim -t ghcr.io/${owner}/${reponame}/gno-slim . | |
docker build --target=gnofaucet-slim -t ghcr.io/${owner}/${reponame}/gnofaucet-slim . | |
docker build --target=gnoweb-slim -t ghcr.io/${owner}/${reponame}/gnoweb-slim . | |
docker tag ghcr.io/${owner}/${reponame}/gnoland-slim:latest ghcr.io/${owner}/${reponame}/gnoland-slim:${GITHUB_SHA::8} | |
docker tag ghcr.io/${owner}/${reponame}/gnokey-slim:latest ghcr.io/${owner}/${reponame}/gnokey-slim:${GITHUB_SHA::8} | |
docker tag ghcr.io/${owner}/${reponame}/gno-slim:latest ghcr.io/${owner}/${reponame}/gno-slim:${GITHUB_SHA::8} | |
docker tag ghcr.io/${owner}/${reponame}/gnofaucet-slim:latest ghcr.io/${owner}/${reponame}/gnofaucet-slim:${GITHUB_SHA::8} | |
docker tag ghcr.io/${owner}/${reponame}/gnoweb-slim:latest ghcr.io/${owner}/${reponame}/gnoweb-slim:${GITHUB_SHA::8} | |
- name: List docker images | |
run: | | |
docker images | grep ghcr | |
- name: Log in to GitHub Container Registry | |
if: (github.event_name != 'pull_request') | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish images | |
if: (github.event_name != 'pull_request') | |
env: | |
owner: ${{ github.repository_owner }} | |
reponame: ${{ github.event.repository.name }} | |
run: | | |
docker push ghcr.io/${owner}/${reponame}:latest | |
docker push ghcr.io/${owner}/${reponame}:${GITHUB_SHA::8} | |
docker push ghcr.io/${owner}/${reponame}/gnoland-slim:latest | |
docker push ghcr.io/${owner}/${reponame}/gnoland-slim:${GITHUB_SHA::8} | |
docker push ghcr.io/${owner}/${reponame}/gnokey-slim:latest | |
docker push ghcr.io/${owner}/${reponame}/gnokey-slim:${GITHUB_SHA::8} | |
docker push ghcr.io/${owner}/${reponame}/gno-slim:latest | |
docker push ghcr.io/${owner}/${reponame}/gno-slim:${GITHUB_SHA::8} | |
docker push ghcr.io/${owner}/${reponame}/gnofaucet-slim:latest | |
docker push ghcr.io/${owner}/${reponame}/gnofaucet-slim:${GITHUB_SHA::8} | |
docker push ghcr.io/${owner}/${reponame}/gnoweb-slim:latest | |
docker push ghcr.io/${owner}/${reponame}/gnoweb-slim:${GITHUB_SHA::8} |