Skip to content

Update Dockerfile

Update Dockerfile #40

Workflow file for this run

name: main
on:
push:
branches:
- 'master'
tags:
- 'v*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: duckdb/duckdb-wasm-ci-env
jobs:
docker_build:
name: Docker Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |-
echo "IMAGE_TAG=$(cat ./TAG)" >> $GITHUB_ENV
shell: bash
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
cache-from: type=gha
cache-to: type=gha
test_action:
name: Test Action
runs-on: ubuntu-latest
needs:
- docker_build
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Compile hello_world with emcc
uses: ./
with:
script: |-
emcc ./test/hello_world.cc