Skip to content

Commit

Permalink
DO NOT MERGE: build dev containers
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Feb 9, 2024
1 parent 01d908c commit 53b1e54
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Push Container to GHCR

on: [push]

permissions:
contents: read
packages: write

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}:sha-${{github.sha }}

0 comments on commit 53b1e54

Please sign in to comment.