Skip to content

Commit

Permalink
Add publish container github action and remove old action
Browse files Browse the repository at this point in the history
  • Loading branch information
ottolote committed Apr 23, 2024
1 parent f2a6865 commit 6198f51
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 37 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-container-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
permissions:
id-token: write
contents: read
packages: write

name: Publish markdown2confluence container image

on:
push:
branches: [main,ol/containerize]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

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

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

37 changes: 0 additions & 37 deletions .github/workflows/publisher.yml

This file was deleted.

0 comments on commit 6198f51

Please sign in to comment.