mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Create oci.yml
This commit is contained in:
parent
e55e442aea
commit
12fab6e7cc
19
.github/workflows/oci.yml
vendored
Normal file
19
.github/workflows/oci.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: OCI
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to Docker Hub
|
||||
run: docker login --username mstg --pasword ${{secrets.DOCKER_SECRET}}
|
||||
- name: Get the version
|
||||
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
|
||||
- name: Build the Docker image
|
||||
run: docker build . -t docker.io/mstg/srpmproc:${SOURCE_TAG}
|
||||
- name: Push to Docker Hub
|
||||
run: docker push docker.io/mstg/srpmproc:${SOURCE_TAG}
|
Loading…
Reference in New Issue
Block a user