Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
👷 Update submodule version
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin Schnabel committed Nov 18, 2022
1 parent 7a15ccb commit f84c4c5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,50 @@ on:
branches: [ main ]

env:
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
GO_REPO: gameontext/gameon-proxy
SUBMODULE: proxy

jobs:

build:
runs-on: ubuntu-latest
steps:
outputs:
submodule: ${{ env.SUBMODULE }}

steps:
- uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# github.repository as <account>/<repo>
images: ${{ github.repository }}
images: ${{ env.GO_REPO }}
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=latest,enable={{is_default_branch}}
type=raw,enable=true,priority=200,prefix=,suffix=,value=gh-${{ github.ref_name }}-${{ github.run_number }}
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
if: github.repository == ${{ env.GO_REPO }}
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

call-submodule-update:
needs: build
uses: gameontext/gameon/.github/workflows/updateSubmodule.yml@main
with:
submodule: ${{ needs.build.outputs.submodule }}
submodule_ref: ${{ github.sha }}
target_branch: ${{ github.ref_name }}
secrets: inherit
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM nginx:stable-alpine

LABEL maintainer="Erin Schnabel <[email protected].com> (@ebullientworks)"
LABEL maintainer="Erin Schnabel <ebullient@redhat.com> (@ebullientworks)"

RUN apk add --no-cache jq wget tar

Expand Down

0 comments on commit f84c4c5

Please sign in to comment.