Update ryuk tag in README to 0.5.1 (#96) #228
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: Test & Build multi-arch Docker Image | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18' | |
- run: go version | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: go-mod verify | |
run: go mod verify | |
- name: go-mod tidy | |
run: go mod tidy | |
- name: go-build | |
env: | |
GOOS: linux | |
run: go build | |
- name: go-test | |
run: go test -v ./... | |
build: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18' | |
- run: go version | |
- 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 info | |
run: docker info | |
- name: Buildx inspect | |
run: docker buildx inspect | |
- name: Build image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x | |
push: false | |
# Use a 'temp' tag, that won't be pushed, for non-release builds | |
tags: testcontainers/ryuk:${{ github.event.release.tag_name || 'temp' }} |