#731 docker multiplatform WIP #1540
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
on: [push, workflow_dispatch] | |
name: "Main pipeline: build, lint, test, docker" | |
jobs: | |
earthly: | |
name: Earthly | |
runs-on: ubuntu-latest | |
env: | |
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }} | |
steps: | |
- uses: earthly/actions-setup@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version: "latest" | |
- uses: actions/checkout@v2 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: joepmeneer | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | |
with: | |
images: joepmeneer/atomic-server | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Earthly build, test | |
run: earthly --org ontola --ci --sat henk -P +pipeline | |
- name: Earthly build and push docker | |
run: earthly --org ontola --ci --sat henk -P --push +docker --tag="${{ steps.meta.outputs.tags }}" |