Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker build Action #8105

Closed
qstokkink opened this issue Aug 21, 2024 · 0 comments · Fixed by #8108
Closed

Add Docker build Action #8105

qstokkink opened this issue Aug 21, 2024 · 0 comments · Fixed by #8108
Assignees
Milestone

Comments

@qstokkink
Copy link
Contributor

It should be relatively easy to build Docker images using GitHub Actions, taken from https://docs.docker.com/build/ci/github-actions/share-image-jobs/ :

name: ci

on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      
      - name: Build and export
        uses: docker/build-push-action@v6
        with:
          tags: myimage:latest
          outputs: type=docker,dest=/tmp/myimage.tar
      
      - name: Upload artifact
        uses: actions/upload-artifact@v4
        with:
          name: myimage
          path: /tmp/myimage.tar

If we automatically publish images, we also do not have to worry about maintaining (as much) documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant