Skip to content

Commit

Permalink
Oops wrong workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrt committed Feb 2, 2024
1 parent 5ee7206 commit 31a8c13
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/dev-image.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
name: Build container image
on: [push]
name: Developer image
on:
push:
branches: [main]

jobs:
build:
name: Build image
push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Docker - Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker - Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
tags: type=raw,value=dev
flavor: latest=false

- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: my-new-image
tags: v1 ${{ github.sha }}
containerfiles: |
./Containerfile
build-args: |
some_arg=some_value
- name: Docker - Build / Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 31a8c13

Please sign in to comment.