Skip to content

Commit

Permalink
ci: container workflow (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Dec 24, 2024
1 parent daf890d commit 9e6d1e7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Container

on:
push:
branches:
- "main"
pull_request:

jobs:
build_and_push:
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: docker login
run: echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- run: make docker-build

- run: make docker-push
if: github.event_name != 'pull_request'
33 changes: 0 additions & 33 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 9e6d1e7

Please sign in to comment.