mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
a65ac105cc
Now that the drivers repo and friends are intended to target the most recent release version of TinyGo instead of the development version, this trigger does not serve any puppose to trigger a build that will have already been tested. Signed-off-by: deadprogram <ron@hybridgroup.com>
69 lines
2.0 KiB
YAML
69 lines
2.0 KiB
YAML
# This is the Github action to build and push the tinygo/tinygo-dev Docker image.
|
|
# If you are looking for the tinygo/tinygo "release" Docker image please see
|
|
# https://github.com/tinygo-org/docker
|
|
#
|
|
name: Docker
|
|
on:
|
|
push:
|
|
branches: [ dev, fix-docker-llvm-build ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
push_to_registry:
|
|
name: build-push-dev
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
steps:
|
|
- name: Free Disk space
|
|
shell: bash
|
|
run: |
|
|
df -h
|
|
sudo rm -rf /opt/hostedtoolcache
|
|
sudo rm -rf /usr/local/lib/android
|
|
sudo rm -rf /usr/share/dotnet
|
|
sudo rm -rf /opt/ghc
|
|
sudo rm -rf /usr/local/graalvm
|
|
sudo rm -rf /usr/local/share/boost
|
|
df -h
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v5
|
|
with:
|
|
submodules: recursive
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: |
|
|
tinygo/tinygo-dev
|
|
ghcr.io/${{ github.repository_owner }}/tinygo-dev
|
|
tags: |
|
|
type=sha,format=long
|
|
type=raw,value=latest
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
- name: Log in to Github Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|