Pending changes exported from your codespace
This commit is contained in:
parent
417f1ed281
commit
1da45d04ad
2 changed files with 18 additions and 18 deletions
18
.github/workflows/docker-image.yml
vendored
18
.github/workflows/docker-image.yml
vendored
|
|
@ -1,18 +0,0 @@
|
|||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||
18
.github/workflows/publish.yml
vendored
Normal file
18
.github/workflows/publish.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: publish
|
||||
on: [push]
|
||||
jobs:
|
||||
publish-hello-docker-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build the hello-docker Docker image
|
||||
run: |
|
||||
docker build . --tag ghcr.io/chezburg/free-games-claimer:latest
|
||||
docker run ghcr.io/chezburg/free-games-claimer:latest
|
||||
docker push ghcr.io/chezburg/free-games-claimer:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue